package com.zhku.orders.feignclient;


import com.zhku.base.model.RestResponse;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.*;

@FeignClient(value = "user-api", fallbackFactory = UserClientFactory.class)
@RequestMapping("/user")
public interface UserClient {

    @GetMapping("/address/{id}")
    public RestResponse<TtUserAddress> getAddress(@PathVariable("id") String id);

    @PostMapping(value = "/deleteSuccessGoods")
    public boolean deleteSuccessGoods(@RequestParam("userId") String userId, @RequestParam("goodsId")String goodsId);

}
